package com.zhongxiangspace.mapper;

import com.zhongxiangspace.entity.QueryAnalyzer;
import com.zhongxiangspace.entity.StationBranch;
import com.zhongxiangspace.entity.StationHouse;
import com.zhongxiangspace.entity.StationIcon;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 工位
 */
public interface StationBranchMapper {


    /**
     * 获取工位服务icon
     * @param type
     * @return
     */
    List<StationIcon> queryIcon(@Param("type") String type);

    /**
     * 插入数据
     * @param stationBranch
     * @return
     */
    boolean insert(StationBranch stationBranch);

    /**
     * 跟新数据
     * @param queryAnalyzer
     * @return
     */
    List<Map<String,Object>> queryAll(QueryAnalyzer queryAnalyzer);

    /**
     * 获取单条
     * @param id
     * @return
     */
    StationBranch queryOne(@Param("id") Integer id);

    /**
     * 更新data
     * @param stationBranch
     * @return
     */
    boolean updata(StationBranch stationBranch);

    /**
     * 删除
     * @param id
     * @return
     */
    boolean delete(@Param("id")Integer id);

    /**
     * 更新是否热门
     * @param stationBranch
     * @return
     */
    boolean updataStateHot(StationBranch stationBranch);

    /**
     * 上下线
     * @param stationBranch
     * @return
     */
    boolean updataStates(StationBranch stationBranch);

    /**
     * 插入工位属性
     * @param stationHouse
     * @return
     */
    boolean attributeinsert(StationHouse stationHouse);

    /**
     * 查询分部房源
     * @param station_id
     * @return
     */
    List<StationHouse> queryStationHouse(@Param("station_id") Integer station_id);


    /**
     * 逻辑删除分部房源
     * @param id
     * @return
     */
    boolean deleteAttribute(@Param("id")Integer id);
}
